var H=false;for(var G=0;G<E.length-1;G++){var M=optionsData.HotKeys[E[G]+"HkKeyCode"];if(M==0){continue}var D=optionsData.HotKeys[E[G]+"HkMods"];for(var F=G+1;F<E.length;F++){var L=optionsData.HotKeys[E[F]+"HkKeyCode"];if(L==0){continue}var C=optionsData.HotKeys[E[F]+"HkMods"];if(L==M&&C==D){H=true;break
}}if(H){break}}if(H){LP.alert(LP.lpgs("You cannot assign more than one HotKey the same value."));return false}LP.lpmainprefs.setBoolPref("signon.rememberSignons",!optionsData.General["disableffpw"]);LP.lpprefsSetBoolPref("pageOpenTab",optionsData.General["pageOpenTab"]);LP.lpprefsSetBoolPref("pageOpenSameTab",optionsData.General["pageOpenSameTab"]);
var K=LP.lpprefsHasUserValue("logOffWhenCloseBrowser")?LP.lpprefsGetBoolPref("logOffWhenCloseBrowser"):false;var A=LP.lpprefsHasUserValue("logOffWhenCloseBrowserVal")?LP.lpprefsGetIntPref("logOffWhenCloseBrowserVal"):0;LP.lpprefsSetBoolPref("logOffWhenCloseBrowser",optionsData.General["logOffWhenCloseBrowser"]);
var N=optionsData.General["logOffWhenCloseBrowser"]&&optionsData.General["logOffWhenCloseBrowserVal"]==0?true:false;if(B!=N){LP.lplogincheck("preferences")}var I=LP.lpprefsHasUserValue("useCompact",false)?LP.lpprefsGetBoolPref("useCompact",false):true;if(I!=optionsData.General["useCompact"]){LP.lpprefsSetBoolPref("useCompact",optionsData.General["useCompact"],false);
LP.lpprefsSetCharPref("language",optionsData.Advanced["language"],false);if(optionsData.General["logOffWhenCloseBrowser"]||optionsData.General["idleLogoff"]){if((LP.lpprefsHasUserValue("rememberPassword",false)&&LP.lpprefsGetBoolPref("rememberPassword",false))||LP.have_loginpw(LP.getUsername())){if(LP.lpConfirmYesNo(LP.lpgs("You currently have LastPass set to remember your master password. Doing so essentially makes the automatically logoff options you've chosen useless. Would you like LastPass to stop remembering your master password?"),window)){LP.lpprefsSetBoolPref("rememberPassword",false,false);
var D=A.getAttribute("src");var B=A.contentDocument;if(D.indexOf("feedback")!=-1){optionsData.Feedback=new Array();optionsData.Feedback["subject"]=B.getElementById("subject").value;optionsData.Feedback["description"]=B.getElementById("description").value;optionsData.Feedback["site"]=B.getElementById("site").value;
J.getElementById("storeLostPWOTP").checked=optionsData.Advanced["StoreLostPWOTP"];var C=J.getElementById("lplanguagepopup");for(var E in LP.LANGS){var H=J.createElement("menuitem");H.setAttribute("label",LP.LANGS[E][0]);H.setAttribute("value",LP.LANGS[E][1]);C.appendChild(H);if(LP.LANGS[E][1]==optionsData.Advanced["language"]){var D=J.getElementById("lplanguage");
}}LP.lpfeedback(optionsData.Feedback["subject"],optionsData.Feedback["description"],optionsData.Feedback["site"],optionsData.Feedback["email"]);return true}}if(document.getElementById("lastpass-options-list").selectedItem==document.getElementById("FeedbackPage")){LP.alert(LP.lpgs("You must enter a description."),window);
LP.sr(B,"logOffWhenCloseBrowser","label","Automatically Logoff when Close Browser");LP.sr(B,"idleLogoff","label","IdleLogoff");LP.sr(B,"GeneralCaption","label","General");LP.sr(B,"pageopensametab","label","Open New Pages in the current tab");LP.sr(B,"pageopentab","label","Open New Pages in Tabs");LP.sr(B,"pageopenwindow","label","Open New Pages in Windows");
LP.sr(B,"highlightFields","label","Highlight Input boxes");LP.sr(B,"automaticallyFill","label","Automatically Fill Login Information");LP.sr(B,"showHomepageAfterLogin","label","ShowHomepageAfterLogin");LP.sr(B,"AppearanceCaption","label","Appearance");LP.sr(B,"useCompact","label","Use Compact Toolbar");
LP.sr(B,"showAcctsInGroups","label","Show Sites in Groups");LP.sr(B,"showAcctsInSidebar","label","Show Sites in Sidebar");LP.sr(B,"hidecontextmenu","label","Hide Context Menu Options");LP.sr(B,"Appearance","hidden",HIDE_APPEARANCE_BOX?true:false);LP.sr(B,"useCompact","hidden",HIDE_COMPACT_OPTION?true:false);
LP.sr(B,"idleLogoffBox","hidden",HIDE_AUTOLOGOFFCLOSE?true:false);parent.writeDataToPage();fix_fields()}function load_notifications(B,A){LP.sr(B,"NotificationsCaption","label","Notifications");LP.sr(B,"showFormFillNotifications","label","Show Form Fill Notifications");LP.sr(B,"showSaveSiteNotifications","label","Show Save Site Notifications");
LP.sr(B,"showNotifications","label","Show Notifications");LP.sr(B,"showLoginNotifications","label","Show Login Notifications");LP.sr(B,"offerGeneratePasswd","label","Offer to Generate Secure Passwords");LP.sr(B,"notificationsBottom","label","Show notifications below browser");LP.sr(B,"notificationsAfterClick","label","Show certain notifications only after click");
LP.sr(B,"recheckHkLabel","value","Recheck Page");LP.sr(B,"searchHkLabel","value","Site Search");LP.sr(B,"nextHkLabel","value","Fill In Next Login (when multiple)");LP.sr(B,"prevHkLabel","value","Fill In Previous Login (when multiple)");LP.sr(B,"submitHkLabel","value","Submit Form");LP.sr(B,"homeHkLabel","value","Open My LastPass Vault");
LP.sr(B,"saveallHkLabel","value","Save All Entered Data");LP.sr(B,"logoffHkLabel","value","Logoff");LP.sr(B,"searchHkRow","hidden",LP.HIDE_SEARCH_HK?true:false);if(LP.IsVaultHidden()||LP.HIDE_HOME_HK){LP.sr(B,"homeHkRow","hidden",true)}parent.writeDataToPage()}function load_accountsettings(B,A){LP.sr(B,"AccountSettingsCaption","label","Account Settings");
LP.sr(B,"fromtheweb","value","This can only be handled from a webpage");LP.sr(B,"opensettings","value","Click here to launch Account Settings")}function load_advanced(B,A){LP.sr(B,"AdvancedCaption","label","Advanced");LP.sr(B,"autoauto","label","Automatically login to sites if time since last login > (seconds)");
LP.sr(B,"warninsecureforms","label","Warn before filling insecure forms");LP.sr(B,"dontfillautocompleteoff","label","RespectAutoComplete");LP.sr(B,"pollServer","label","Poll server for account changes (mins)");LP.sr(B,"languagetxt","value","Language");LP.sr(B,"clearClipboard","label","Clear Clipboard after use (seconds)");
LP.sr(B,"opentranslate","label","Help Translate");LP.sr(B,"openloginstart","label","Open login dialog when start browser");LP.sr(B,"capturenewformfill","label","Offer to create new Form Fill Profiles Automatically");LP.sr(B,"storeLostPWOTP","label","Save a disabled One Time Password locally for Account Recovery");
LP.sr(B,"pollServerBox","hidden",!LP.lpdopoll);LP.sr(B,"storeLostPWOTPBox","hidden",!LP.lpdolostpwotp);LP.sr(B,"opentranslate","hidden",!LP.lpdohelptranslate);parent.writeDataToPage();fix_fields()}function load_icons(B,A){B.getElementById("ContributeCaption").appendChild(B.createTextNode(LP.lpgs("If you would like to contribute new icons, please contact support@lastpass.com")));